import java.util.Arrays;

/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/7/8 15:47
 * @Copyright 博为峰
 */
public class ArrayTest02 {
    public static void main(String[] args) {
        int[] arr = {10, 21, 9, 11, 26, 6};
        Arrays.sort(arr);//
//        for (int i = 0; i < arr.length; i++) {
//            System.out.println("arr = " + arr[i]);
//        }
        int result =Arrays.binarySearch(arr,26);
        System.out.println("result = " + result);
    }
}
